package com.mvc.service.impl;

import com.mvc.dao.RoleDAO;
import com.mvc.dao.UserDAO;
import com.mvc.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements HelloService {


    @Autowired
    UserDAO userDAO;
    @Autowired
    RoleDAO roleDAO;


    @Override
    public void showHello() {
        System.out.println("Hello,Spring");
        System.out.println(userDAO.getUser(1l).getUserName());
    }
}
